package cool.taomu.toolkit.velocity

import com.google.auto.service.AutoService
import com.google.inject.AbstractModule
import com.google.inject.name.Names
import cool.taomu.toolkit.TaomuConfigure
import cool.taomu.toolkit.platform.inter.IPlatform
import cool.taomu.toolkit.template.ITemplate

@AutoService(IPlatform)
class VelocityPlugin implements IPlatform {
	
	override note() {
		"Velocity模版引擎"
	}
	
	override packages() {
	}
	
	override module(TaomuConfigure configure) {
		new AbstractModule(){
			override configure(){
				bind(ITemplate)
				.annotatedWith(Names.named("taomu.template.velocity"))
				.to(VelocityUtils)
			}
		}
	}
	
	override start() {
	}
	
	override init() {
	}
	
}
